package com.yongqi.duocai.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 夏亮辉
 * @since 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_invoice")
@ApiModel(value="Invoice对象", description="")
public class Invoice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "发票抬头")
    private String name;

    @ApiModelProperty(value = "纳税人识别号")
    private String invoiceNo;

    @ApiModelProperty(value = "开户行")
    private String bank;

    @ApiModelProperty(value = "开户行账号")
    private String bankNo;

    @ApiModelProperty(value = "发票派送邮箱")
    private String email;

    @ApiModelProperty(value = "是否为默认发票")
    private Boolean isDefault;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Boolean isDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;

}
